package models

type UserLevel int

const (
    LevelSuperAdmin UserLevel = iota + 1
    LevelAdmin
    LevelUser
)

type Permission string

const (
    PermissionCreateUser Permission = "create_user"
    PermissionDeleteUser Permission = "delete_user"
    PermissionEditUser   Permission = "edit_user"
)

type User struct {
    Username    string
    Password    string
    Level       UserLevel
    Permissions []Permission
    TenantID    string
    IsSystem    bool
}